package cn.zwx.search.exceptioin;

import lombok.AllArgsConstructor;

@AllArgsConstructor
public enum ExceptionEnum {
    UNKNOWN_EXCEPTION("unknown_exception","未知异常"),

    SYSTEM_EXCEPTION("system_exception","系统异常"),

    PARAMETER_EXCEPTION("parameter_exception","参数异常"),

    INDEX_EXISTS_EXCEPTION("index_exists_exception","索引已存在"),

    INDEX_NOT_EXISTS_EXCEPTION("index_not_exists_exception","索引不存在"),
    ;

    public final String code;

    public final String message;
}
